package com.wangsong.system.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wangsong.common.service.impl.BaseServiceImpl;
import com.wangsong.system.model.Dict;
import com.wangsong.system.model.DictTransaction;
import com.wangsong.system.service.DictService;
import com.wangsong.system.service.DictTransactionService;

@Service("dictService")
@Transactional
public class DictServiceImpl extends BaseServiceImpl<Dict> implements DictService{
	@Autowired
	private DictTransactionService dictTransactionService;
	
	@Override
	public void test() {
		Dict dict2=new Dict();
		insert(dict2);
		DictTransaction dict=new DictTransaction();
		int f=dictTransactionService.inset2();
		if(f==0){
			throw new RuntimeException();
		}
		
		
	}

}
